import request from '@/utils/request'

// 查询费用信息列表
export function listExpense(query) {
  return request({
    url: '/project/lysexpense/list',
    method: 'get',
    params: query
  })
}

// 查询费用信息详细
export function getExpense(id) {
  return request({
    url: '/project/lysexpense/' + id,
    method: 'get'
  })
}

// 新增费用信息
export function addExpense(data) {
  return request({
    url: '/project/lysexpense',
    method: 'post',
    data: data
  })
}

// 修改费用信息
export function updateExpense(data) {
  return request({
    url: '/project/lysexpense',
    method: 'put',
    data: data
  })
}

// 删除费用信息
export function delExpense(id) {
  return request({
    url: '/project/lysexpense/' + id,
    method: 'delete'
  })
}
  //审核
  export function getshenhe(data) {
    return request({
      url: '/project/lysexpense/shenhe',
      method: 'put',
      data: data
    })
  }
    //收款
    export function getpay(data) {
      return request({
        url: '/project/lysexpense/getpay',
        method: 'put',
        data: data
      })
}

